<!--  -->
<template>
  <div class="banklist">
    <van-nav-bar
      @click-left="onClickLeft"
      @click-right="onClickRight"
      title="银行卡"
      right-text="添加"
      :left-arrow="true"
    />
    <div class="content">
      <van-swipe-cell right-width="180px">
        <div class="bank_cell">
          <img src="@/assets/img/bank/beijing.png" />
          <div class="title">
            招商银行
            <span>储蓄卡</span>
          </div>
          <ul class="Cardnumber">
            <li>****</li>
            <li>****</li>
            <li>****</li>
            <li>1568</li>
          </ul>
        </div>
        <template #right>
          <img class="del" src="@/assets/img/bank/del.png" />
        </template>
      </van-swipe-cell>
      <van-swipe-cell right-width="180px">
        <div class="bank_cell">
          <img src="@/assets/img/bank/youzheng.png" />
          <div class="title">
            邮政银行
            <span>储蓄卡</span>
          </div>
          <ul class="Cardnumber">
            <li>****</li>
            <li>****</li>
            <li>****</li>
            <li>3587</li>
          </ul>
        </div>
        <template #right>
          <img class="del" src="@/assets/img/bank/del.png" />
        </template>
      </van-swipe-cell>
      <van-swipe-cell right-width="180px">
        <div class="bank_cell">
          <img src="@/assets/img/bank/zhongxin.png" />
          <div class="title">
            中信银行
            <span>储蓄卡</span>
          </div>
          <ul class="Cardnumber">
            <li>****</li>
            <li>****</li>
            <li>****</li>
            <li>1568</li>
          </ul>
        </div>
        <template #right>
          <img class="del" src="@/assets/img/bank/del.png" />
        </template>
      </van-swipe-cell>
      <van-swipe-cell right-width="180px">
        <div class="bank_cell">
          <img src="@/assets/img/bank/jiaotong.png" />
          <div class="title">
            交通银行
            <span>储蓄卡</span>
          </div>
          <ul class="Cardnumber">
            <li>****</li>
            <li>****</li>
            <li>****</li>
            <li>1568</li>
          </ul>
        </div>
        <template #right>
          <img class="del" src="@/assets/img/bank/del.png" />
        </template>
      </van-swipe-cell>
      <van-swipe-cell right-width="180px">
        <div class="bank_cell">
          <img src="@/assets/img/bank/minsheng.png" />
          <div class="title">
            民生银行
            <span>储蓄卡</span>
          </div>
          <ul class="Cardnumber">
            <li>****</li>
            <li>****</li>
            <li>****</li>
            <li>1568</li>
          </ul>
        </div>
        <template #right>
          <img class="del" src="@/assets/img/bank/del.png" />
        </template>
      </van-swipe-cell>
      <van-swipe-cell right-width="180px">
        <div class="bank_cell">
          <img src="@/assets/img/bank/beijing.png" />
          <div class="title">
            招商银行
            <span>储蓄卡</span>
          </div>
          <ul class="Cardnumber">
            <li>****</li>
            <li>****</li>
            <li>****</li>
            <li>1568</li>
          </ul>
        </div>
        <template #right>
          <img class="del" src="@/assets/img/bank/del.png" />
        </template>
      </van-swipe-cell>
      <van-swipe-cell right-width="180px">
        <div class="bank_cell">
          <img src="@/assets/img/bank/jianshe.png" />
          <div class="title">
            建设银行
            <span>储蓄卡</span>
          </div>
          <ul class="Cardnumber">
            <li>****</li>
            <li>****</li>
            <li>****</li>
            <li>1568</li>
          </ul>
        </div>
        <template #right>
          <img class="del" src="@/assets/img/bank/del.png" />
        </template>
      </van-swipe-cell>
      <van-swipe-cell right-width="180px">
        <div class="bank_cell">
          <img src="@/assets/img/bank/huaxia.png" />
          <div class="title">
            华夏银行
            <span>储蓄卡</span>
          </div>
          <ul class="Cardnumber">
            <li>****</li>
            <li>****</li>
            <li>****</li>
            <li>1568</li>
          </ul>
        </div>
        <template #right>
          <img class="del" src="@/assets/img/bank/del.png" />
        </template>
      </van-swipe-cell>
      <van-swipe-cell right-width="180px">
        <div class="bank_cell">
          <img src="@/assets/img/bank/guangdongfazhan.png" />
          <div class="title">
            广东发展银行
            <span>储蓄卡</span>
          </div>
          <ul class="Cardnumber">
            <li>****</li>
            <li>****</li>
            <li>****</li>
            <li>1568</li>
          </ul>
        </div>
        <template #right>
          <img class="del" src="@/assets/img/bank/del.png" />
        </template>
      </van-swipe-cell>
      <van-swipe-cell right-width="180px">
        <div class="bank_cell">
          <img src="@/assets/img/bank/shanghaipudong.png" />
          <div class="title">
            上海浦东发展银行
            <span>储蓄卡</span>
          </div>
          <ul class="Cardnumber">
            <li>****</li>
            <li>****</li>
            <li>****</li>
            <li>1568</li>
          </ul>
        </div>
        <template #right>
          <img class="del" src="@/assets/img/bank/del.png" />
        </template>
      </van-swipe-cell>
      <van-swipe-cell right-width="180px">
        <div class="bank_cell">
          <img src="@/assets/img/bank/zhongguo.png" />
          <div class="title">
            中国银行
            <span>储蓄卡</span>
          </div>
          <ul class="Cardnumber">
            <li>****</li>
            <li>****</li>
            <li>****</li>
            <li>1568</li>
          </ul>
        </div>
        <template #right>
          <img class="del" src="@/assets/img/bank/del.png" />
        </template>
      </van-swipe-cell>
      <van-swipe-cell right-width="180px">
        <div class="bank_cell">
          <img src="@/assets/img/bank/zhongguojinchukou.png" />
          <div class="title">
            中国进出口银行
            <span>储蓄卡</span>
          </div>
          <ul class="Cardnumber">
            <li>****</li>
            <li>****</li>
            <li>****</li>
            <li>1568</li>
          </ul>
        </div>
        <template #right>
          <img class="del" src="@/assets/img/bank/del.png" />
        </template>
      </van-swipe-cell>
      <van-swipe-cell right-width="180px">
        <div class="bank_cell">
          <img src="@/assets/img/bank/beijing.png" />
          <div class="title">
            北京银行
            <span>储蓄卡</span>
          </div>
          <ul class="Cardnumber">
            <li>****</li>
            <li>****</li>
            <li>****</li>
            <li>1568</li>
          </ul>
        </div>
        <template #right>
          <img class="del" src="@/assets/img/bank/del.png" />
        </template>
      </van-swipe-cell>
      <van-swipe-cell right-width="180px">
        <div class="bank_cell">
          <img src="@/assets/img/bank/nongye.png" />
          <div class="title">
            农业银行
            <span>储蓄卡</span>
          </div>
          <ul class="Cardnumber">
            <li>****</li>
            <li>****</li>
            <li>****</li>
            <li>1568</li>
          </ul>
        </div>
        <template #right>
          <img class="del" src="@/assets/img/bank/del.png" />
        </template>
      </van-swipe-cell>
      <van-swipe-cell right-width="180px">
        <div class="bank_cell">
          <img src="@/assets/img/bank/gongshang.png" />
          <div class="title">
            工商银行
            <span>储蓄卡</span>
          </div>
          <ul class="Cardnumber">
            <li>****</li>
            <li>****</li>
            <li>****</li>
            <li>1568</li>
          </ul>
        </div>
        <template #right>
          <img class="del" src="@/assets/img/bank/del.png" />
        </template>
      </van-swipe-cell>
      <van-swipe-cell right-width="180px">
        <div class="bank_cell">
          <img src="@/assets/img/bank/zhongguoguangda.png" />
          <div class="title">
            中国光大银行
            <span>储蓄卡</span>
          </div>
          <ul class="Cardnumber">
            <li>****</li>
            <li>****</li>
            <li>****</li>
            <li>1568</li>
          </ul>
        </div>
        <template #right>
          <img class="del" src="@/assets/img/bank/del.png" />
        </template>
      </van-swipe-cell>
      <van-swipe-cell right-width="180px">
        <div class="bank_cell">
          <img src="@/assets/img/bank/xingye.png" />
          <div class="title">
            兴业银行
            <span>储蓄卡</span>
          </div>
          <ul class="Cardnumber">
            <li>****</li>
            <li>****</li>
            <li>****</li>
            <li>1568</li>
          </ul>
        </div>
        <template #right>
          <img class="del" src="@/assets/img/bank/del.png" />
        </template>
      </van-swipe-cell>
      <van-swipe-cell right-width="180px">
        <div class="bank_cell">
          <img src="@/assets/img/bank/qita.png" />
          <div class="title">
            **银行
            <span>储蓄卡</span>
          </div>
          <ul class="Cardnumber">
            <li>****</li>
            <li>****</li>
            <li>****</li>
            <li>1568</li>
          </ul>
        </div>
        <template #right>
          <img class="del" src="@/assets/img/bank/del.png" />
        </template>
      </van-swipe-cell>
    </div>
  </div>
</template>

<script>
//这里可以导入其他文件（比如：组件，工具js，第三方插件js，json文件，图片文件等等）
//例如：import 《组件名称》 from '《组件路径》';

export default {
  //import引入的组件需要注入到对象中才能使用
  components: {
    name: "banklist",
  },
  data() {
    //这里存放数据
    return {};
  },
  //监听属性 类似于data概念
  computed: {},
  //监控data中的数据变化
  watch: {},
  //方法集合
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    },
    onClickRight() {
      this.$router.push({
        path: "/bankadd",
        // query: {
        // },
      });
    },
  },
  //生命周期 - 创建完成（可以访问当前this实例）
  created() {},
  //生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {},
  beforeCreate() {}, //生命周期 - 创建之前
  beforeMount() {}, //生命周期 - 挂载之前
  beforeUpdate() {}, //生命周期 - 更新之前
  updated() {}, //生命周期 - 更新之后
  beforeDestroy() {}, //生命周期 - 销毁之前
  destroyed() {}, //生命周期 - 销毁完成
  activated() {}, //如果页面有keep-alive缓存功能，这个函数会触发
};
</script>
<style scoped lang="less">
/* //@import url(); 引入公共css类 */
.banklist {
  width: 100%;
  height: 100%;
  background: #f7f8f9;
  overflow-y: auto;
  .content {
    padding: 12px;
    .bank_cell {
      width: 100%;
      height: 128px;
      position: relative;
      img {
        width: 100%;
        height: 100%;
      }
      .title {
        position: absolute;
        font-size: 15px;
        font-family: PingFangSC, PingFangSC-Semibold;
        font-weight: 600;
        text-align: left;
        color: #ffffff;
        z-index: 99;
        left: 48px;
        top: 17px;
        span {
          opacity: 0.7;
          font-size: 15px;
          font-family: PingFangSC, PingFangSC-Regular;
          font-weight: 400;
          text-align: left;
          color: #ffffff;
          letter-spacing: 0px;
          margin-left: 5px;
        }
      }
      .Cardnumber {
        position: absolute;
        font-size: 24px;
        font-family: DINPro, DINPro-Bold;
        font-weight: 700;
        text-align: left;
        color: #ffffff;
        letter-spacing: 1px;
        z-index: 99;
        left: 27px;
        top: 62px;
        li {
          float: left;
          margin-right: 25px;
        }
      }
    }
    .del {
      width: 110px;
      height: 110px;
      margin-top: 10px;
    }
  }
}
</style>